<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script>
        var gender = "女"
        //如果gender为男,那么就输出打篮球
        if(gender == "男"){
            console.log("打篮球");
        }
        //如果gender为女,那么就输出逛街
        if(gender == "女"){
            console.log("逛街");
        }
    </script>
</body>
</html>